package com.blkj.iam.system.converter;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.blkj.iam.system.model.entity.Client;
import com.blkj.iam.system.model.form.ClientForm;
import com.blkj.iam.system.model.vo.ClientPageVO;
import org.mapstruct.Mapper;

/**
 * 租户对象转换器
 *
 * @author haoxr
 * @since 2022/5/29
 */
@Mapper(componentModel = "spring")
public interface ClientConverter {

    Page<ClientPageVO> toPageVo(Page<Client> page);

    ClientForm toForm(Client client);

    Client toEntity(ClientForm clientForm);
}